﻿using System;

namespace Ayatta.Contract.Domain
{
    public class UserIntegral : BaseEntity<int>
    {
        public int UserId { get; set; }
        public IntegralCategory Category { get; set; }
        public decimal Point { get; set; }
        public string CorrelationId { get; set; }
        public DateTime Expiration { get; set; }
        public IntegralStatus Status { get; set; }
        public string Memo { get; set; }
    }

    public enum IntegralCategory : byte
    {
        Increase = 0,
        Decrease = 1
    }

    public enum IntegralStatus : byte
    {
        Normal = 0,
        Frozen = 1,
        Expired = 2
    }
}